const {remote} = require('electron');
const {Menu} = remote;

const rightTem = [
    {
        label: '粘贴'
    },
    {
        label: '复制'
    }
];

const menu = Menu.buildFromTemplate(rightTem);
window.addEventListener('contextmenu', e => {
    
    // e.preventDefault();
    menu.popup({
        window: remote.getCurrentWindow()
    });
}, false);

